# -*- coding: utf-8 -*-
"""
Created on Wed Jun 13 15:30:39 2018

@author: Luther
"""

import os

path_input = input("Please input:")

x = os.walk(path_input)
with open("D:\\names.csv", "w") as f:
    for i in x:
        path = i[0]
        for j in i[2]:
            each = os.path.join(path, j)
            f.write(each)
            f.write("\n")
